<template>
  <div id="app">
    <ul v-for="(item,index) in myArr" :key=index>
      <li>{{item}}</li>
    </ul>
    <button @click="backspin">走一走</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      myArr: ["帅哥", "美女", "程序猿"],
      add:[]
    };
  },
  methods:{
    backspin(){
     this.myArr.push(this.myArr[0])
    this.myArr.splice(0,1)
      
   
    }
  }
}
</script>